//
//  UseDivider .swift
//  learn-ios
//
//  Created by Dong on 2022/4/5.
//

import SwiftUI

struct UseDivider: View {
    var body: some View {
        VStack(alignment: .leading) {
            // 合理使用分割线，让布局更加清晰
            Group {
                Text("Step1")
                    .font(.title)
                Divider()
                Text("拉取代码")
            }
            Spacer()

            Group {
                Text("Step2")
                    .font(.title)
                Divider()
                Text("修改代码")
            }

            Spacer()
            Group {
                Text("Step3")
                    .font(.title)
                Divider()
                Text("Commit & Push")
            }
            Spacer()
        }
        .padding()
    }
}

struct UseDivider_Previews: PreviewProvider {
    static var previews: some View {
        UseDivider()
    }
}
